package game.model.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author 米泽鹏
 * @since 2022-3-5 下午 12:26
 */
@Data
public class SaveUserProductionRequest {

	@NotNull(message = "用户id不能为空")
	private Long userId;

	@NotNull(message = "类型不能为空")
	private Integer type;

	@NotBlank(message = "产线名称不能为空")
	private String productionName;

	@NotNull(message = "物品id不能为空")
	private Long itemId;

	@NotNull(message = "需求数量（个/min）不能为空")
	private BigDecimal quantityPerMinute;

	@NotBlank(message = "产线数据不能为空")
	private String data;

}
